const pkg = require('./package')


module.exports = {
  mode: 'universal',

  /*
  ** 页面标题
  */
  head: {
    title: pkg.name,
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: pkg.description }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },

  /*
  ** 自定义进度条颜色
  */
  loading: { color: '#fff' },

  /*
  ** 全局样式
  */
  css: [
    'element-ui/lib/theme-chalk/reset.css',
    'element-ui/lib/theme-chalk/index.css',
    '@/assets/css/main.css'
  ],

  /*
  ** 在安装应用程序之前加载插件
  */
  plugins: [
    '@/plugins/element-ui'
  ],

  /*
  ** Nuxt.js modules
  */
  modules: [
  ],

  /*
  ** 基本配置
  */
  build: {
    transpile: [/^element-ui/],
    
    /*
    ** 你可以在这里扩展webpack配置
    */
    extend(config, ctx) {
        
    },
    // https://github.com/nuxt/nuxt.js/issues/3804
    cache: false 
  }
}
